package com.example.pingze.repository;

import com.example.pingze.entity.SentenceUserCollect;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface SentenceUserCollectRepository extends JpaRepository<SentenceUserCollect, String>, JpaSpecificationExecutor<SentenceUserCollect> {
    List<SentenceUserCollect> findSentenceUserCollectByAccount(String account);

    SentenceUserCollect findSentenceUserCollectByAccountAndSentenceId(String account, String sentenceId);

    SentenceUserCollect findSentenceUserCollectById(String id);
}
